// config.js executed inside the iframe
instance.UI.addEventListener(instance.UI.Events.VIEWER_LOADED, () => {
  // documentViewer is a global inside the config file
  const annotManager = documentViewer.getAnnotationManager();

  // Add customization here
  documentViewer.setMargin(20);
  documentViewer.on('fitModeUpdated', (fitMode) => {
    console.log('fit mode changed');
  });

  instance.UI.disableElement('searchButton');
  instance.UI.setTheme('dark');
});
